home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 7_1.lha / 7_1 / tst1.c < prev    next >
Text File  |  1993-08-08  |  336b  |  24 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. include <stream.h>
  6.  
  7. include "7_1ex.c"
  8. include "7_1.c"
  9.  
  10. oid pr(base *b)
  11.  
  12.    b->iam();
  13.  
  14.  
  15. ain()
  16.  
  17. include "7_1b.c"
  18.    // call iam() for each variable
  19.    pr(&a);
  20.    pr(&b);
  21.    pr(&c);
  22.    return 0;
  23.  
  24.